/**
 * provides a model to store information for the ItemClassEditorDialog
 * @author zulianp@lu.unisi.ch
 */
package ch.unisi.inf.projects.java.uom.gui.itemclasseditor;

import ch.unisi.inf.projects.java.uom.Constants;


	public final class TripleEntryModel {
		
		private String name;
		private String type;
		private boolean isList;
		
		public TripleEntryModel(final String name, final String type, final boolean isList){
			
			this.name = name;
			this.type = type;
			this.isList = isList;
			}
		
		public String toString ()
		{
			String string =  type + Constants.ITEM_PARSECHAR.value() + name.replace(" ", Constants.ITEM_PARSECHAR.value());
			if(isList) string = Constants.ITEM_CLASS_LIST.value() + string;
			return string;
		}
		
		public String getName(){
			return name;
			}
	
	
}
